package com.lys.emsystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Menu {
    @TableId(type = IdType.AUTO)
    private int id;

    private String name;

    private String path;

    private String icon;

    private int parent;

    @TableField(exist = false)
    private String parentName;

    private boolean status;

    @TableField(exist = false)
    private List<Menu> menuList;
    // 子菜单
    @TableField(exist = false)
    private List<Menu> subMenuList;

}
